export default {
    methods: {
        /**
         *跳转到
        *@param path
        */
        goTo: function (path) {
            this.$router.push({
            name: path
            });
        },
        goToParams: function (name, params) {
            this.$router.push({
            name: name,
            params: params || {}
            });
        },
        goToQuery: function (name, params) {
            this.$router.push({
            name: name,
            query: params || {}
            });
        },
    }
}